Drawing.lineIntersect Method

Gets the point where the two specified line segments intersect.
 
 
Static This method is static.

Parameters

x1Start

Type: Number
The x-coordinate of the start of the first line.
y1Start

Type: Number
The y-coordinate of the start of the first line.
x1End

Type: Number
The x-coordinate of the end of the first line.
y1End

Type: Number
The y-coordinate of the end of the first line.
x2Start

Type: Number
The x-coordinate of the start of the second line.
y2Start

Type: Number
The y-coordinate of the start of the second line.
x2End

Type: Number
The x-coordinate of the end of the second line.
y2End

Type: Number
The y-coordinate of the end of the second line.

Return Value


Type: Object - May be null
If there is an intersection, an object with properties:
     x       [type: Number]
     y       [type: Number]